In this paper, pyramidal shaped GaN-based quantum dots (QDs) with different sizes in each layer, surrounded by 𝐴 𝑙 0. 2𝐺 𝑎 0. 8𝑁 is proposed for infrared photodetector mainly to enhance the detector performance. In this model, we are considering the QDs sizes’ distribution to calculate all parameters instead of using Poisson distribution to express the inhomogeneous broadening just in the absorption coefficient. To model the performance of the devices, the Schrö dinger equation has been solved using the effective mass approximation; then, the absorption coefficient, the gain, the responsivity, the electron mobility, the dark current, and the detectivity as a function of temperature for different biases are obtained. Significant improvements in the optical behavior are seen in the modeled results at T = 220 K.